-
Notifications
You must be signed in to change notification settings - Fork 23
interface: deprecate default deposit addresses #390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interface: deprecate default deposit addresses #390
Conversation
3881c86 to
60497d2
Compare
60497d2 to
e8ead76
Compare
joncinque
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just a couple of nits
program/src/instruction.rs
Outdated
| /// lockup. | ||
| #[deprecated( | ||
| since = "3.0.0", | ||
| note = "Will be removed in a future release; this was intended to support a wallet flow that never materialized." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can this provide the preferred alternative of creating and delegating a stake account?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
program/src/lib.rs
Outdated
| /// user stake before deposit. | ||
| #[deprecated( | ||
| since = "3.0.0", | ||
| note = "Will be removed in a future release; this was intended to support a wallet flow that never materialized." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: same here, can this give the alternative of using any new stake account address instead?
joncinque
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
this was a misfeature, i imagined it as a way for wallets to fake a sol-like deposit process (eg, i "deposit sol" every epoch, actually it merges the activated stake from the previous epoch and tees up the current sol for the next) but it is super weird and no one ever understood it. eventually it will be replaced by
DepositSol, but there isnt a reason to wait until then to deprecate this because i seriously doubt anyone even uses it. if they do, they can replace it with any method of choosing a canonical address they likethis is just some ux fluff and the program itself doesnt change, it is entirely unaware of this concept and handles them like any other normal stake account